<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app"></div>
<script src="../../JavaScript/vue.js"></script>
<script>
    const app=Vue.createApp({
        template:`
          <ul class="App">
            <!--v-for是循环渲染指令-->
            <li v-for="(num,index) in persons" :key="index">{{num}}-{{index}}</li>
          </ul>
        `,
        data(){
            return{
                persons:[1,2,3,4,5,6,7,8,9,10]
            }
        },
    })
    app.mount("#app")
</script>
</body>
</html>